<%--
  Created by IntelliJ IDEA.
  User: 段生伟
  Date: 2022/2/23
  Time: 10:07
  To change this template use File | Settings | File Templates.
--%>
<%@page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
        request.setCharacterEncoding("UTF-8");
        String username = (String)session.getAttribute("login");
        if (null == username){
            response.sendRedirect("denglu.jsp");
        }

//        String username = request.getParameter("name");
//        String password = request.getParameter("password");
    %>
    欢迎<%=username%>登录

</body>
</html>
